<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>4-比较运算符</title>
	</head>
	<body>
		<script type="text/javascript">
			//> < >= <= !为真或为假  ==等等于 != 不等于 
			var x = 0;
			var y = 3;
			var z = 5;
			if(x>y){
				console.log("error");
			}else{
				console.log('success');
			}
			var u = x<y ? '正确':'错误';
			console.log("u::"+u);
			
			if(x>=z){
				console.log('乱写');
			}else{
				console.log('正确');
			}
			//不等于
			var flag = false;
			if(!flag){
				console.log('true');
			}else{
				console.log('false');
			}
			
			if(x!=y){
				console.log('成立');
			}else{
				console.log('不成立');
			}
			
			
		</script>
	</body>
</html>
